<!--{include biz_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>订单列表</h2>
				</div>
               <div class="sect" style="padding:0 10px;">
					<form method="get" id="formorderlist">
						<script>
							function current_dt(obj){
								$("#current_datetime").val(obj);
								$("#formorderlist").submit();
							}
						</script>
						<input type="hidden" name="current_datetime" id="current_datetime" value="{$_GET['current_datetime']}" />
						<p style="margin:0 10px 0 30px;text-align:right;font-size:12px">
							<style>
								.selecta{background:#F26400;border-radius:2px;color:#fff;padding:3px 7px}
							</style>
							<a href="#" onclick="javascript:current_dt('today');" <!--{if $_GET['current_datetime']=='today' || !$_GET['current_datetime']}-->class=selecta<!--{/if}--> >今天</a>&nbsp;&nbsp;
							<a href="#" onclick="javascript:current_dt('yesterday');" <!--{if $_GET['current_datetime']=='yesterday'}-->class=selecta<!--{/if}--> >昨天</a>&nbsp;&nbsp;
							<a href="#" onclick="javascript:current_dt('last_seven_days');" <!--{if $_GET['current_datetime']=='last_seven_days'}-->class=selecta<!--{/if}--> >最近7天</a>&nbsp;&nbsp;
							<a href="#" onclick="javascript:current_dt('last_month');" <!--{if $_GET['current_datetime']=='last_month'}-->class=selecta<!--{/if}--> >最近30天</a>&nbsp;&nbsp;
							<a href="#" onclick="javascript:current_dt('all');" <!--{if $_GET['current_datetime']=='all'}-->class=selecta<!--{/if}--> >全部</a>&nbsp;&nbsp;&nbsp;&nbsp;
							订单编号：<input type="text" name="id" value="${htmlspecialchars($id)}" class="h-input" style="width:80px"/>&nbsp;
							项目编号：<input type="text" name="team_id" class="h-input number" style="width:60px" value="{$team_id}" > &nbsp;
							<select name='is_send'>
								<option value="" <!--{if $_GET['is_send']==''}-->selected<!--{/if}-->>--所有--</option>
								<option value="Y" <!--{if $_GET['is_send']=='Y'}-->selected<!--{/if}-->>已发货</option>
								<option value="N" <!--{if $_GET['is_send']=='N'}-->selected<!--{/if}-->>未发货</option>
							</select>
							<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/></p>
					<form>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="80">订单号</th><th width="340">项目</th><th width="180">用户</th><th width="40" nowrap>数量</th><th width="50" nowrap>总款</th><th width="50" nowrap>余付</th><th width="50" nowrap>支付</th><th width="50" nowrap>递送</th><th width="50" nowrap>操作</th></tr>
					<!--{loop $orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td>{$one['team_id']}&nbsp;(<a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['product']}</a>)</td>
						<td>{$users[$one['user_id']]['email']}<br/>{$users[$one['user_id']]['username']}</td>
						<td>{$one['quantity']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['credit'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['money'])}</td>
						<td>{$option_delivery[$teams[$one['team_id']]['delivery']]}${($one['express_no']&&$one['express_id'])?'-已发货':''}</td>
						<td class="op" nowrap><a href="/biz/ajax.php?action=orderview_biz&id={$one['id']}" class="ajaxlink">详情</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
